package com.starsea.book.ui.newpage.adapter

import android.content.Context
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.chad.library.adapter.base.BaseSingleItemAdapter
import com.starsea.book.databinding.HeaderBookCityLayoutBinding

/**
 * @author Lee
 * @createTime 2024-07-12 20 GMT+8
 * @desc :
 */
class BookCityHeaderAdapter(var mContext: Context) :
  BaseSingleItemAdapter<Any, BookCityHeaderAdapter.MyViewHolder>() {

  override fun onBindViewHolder(holder: MyViewHolder, item: Any?) {
  }

  override fun onCreateViewHolder(
    context: Context,
    parent: ViewGroup,
    viewType: Int,
  ): MyViewHolder {
    return MyViewHolder(parent = parent)
  }

  class MyViewHolder(
    parent: ViewGroup,
    val binding: HeaderBookCityLayoutBinding = HeaderBookCityLayoutBinding.inflate(
      LayoutInflater.from(parent.context), parent, false
    ),
  ) : RecyclerView.ViewHolder(binding.root)

}